<?php
/**
 * Template Name: Corey's Corner
 *
 * Selectable from a dropdown menu on the edit page screen.
 */
?>

<?php get_header() ?>

	<div id="container">
    
    	<?php include('breadcrumbs.php'); ?>
    
    	<?php get_sidebar() ?>
    
		<div id="content">

		<?php the_post() ?>

			<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
				<h2 class="entry-title"><?php the_title() ?></h2>
                <div class="fb-like" data-href="<?php the_permalink(); ?>" data-send="true" data-width="450" data-show-faces="true"></div>
				<div class="entry-content">

<?php query_posts( 'post_type=cc_products'); ?>
<?php while ( have_posts() ) : the_post() ?>
  
<div class="coreyscorner-box">
	<div class="coreyscorner-box-top">
    	<?php the_post_thumbnail();?>
        <h5><?php the_title(); ?></h5>
        <div class="coreyscorner-box-top-table">
        	<div class="coreyscorner-box-top-table-one"><b>SKU:</b> <em><?php meta('ccSku'); ?></em></div>
            <div class="coreyscorner-box-top-table-two"><b>Price:</b> <em>$ <?php meta('ccPrice'); ?></em></div>
            <div class="coreyscorner-box-top-table-three"><b>Qty:</b> <em><?php meta('ccQty'); ?></em></div>
            <div style="width: 412px; height: 0px; clear: both;"></div>
        </div>
        <p><b>Description:</b></p>
        <p><?php meta('ccDescription'); ?></p>
        <div style="width: 638px; height: 0px; clear: both;"></div>
    </div>
    <div class="coreyscorner-box-bottom">
    	<span>To Order This Item, Call Us Today: 1.877.786.6299</span>
    </div>
</div>

<?php endwhile; ?>

				</div>
			</div><!-- .post -->

<?php if ( get_post_custom_values('comments') ) comments_template() // Add a key+value of "comments" to enable comments on this page ?>

		</div><!-- #content -->
	</div><!-- #container -->

<?php get_footer() ?>